home *** CD-ROM | disk | FTP | other *** search
- ' This BasicCAD macro cycles through the entire drawing,
- ' and selects all objects on layer 2 then changes their
- ' thickness and sets them to be filled wide lines
- '
- ' Make sure you're in 2D Mode, or this will not appear to work
- '
- ' Use PointSelect to deselect the layers once they are converted
- '
- ' Loop through every object in the drawing
- ' sys(9) is the number of entities in the drawing
- for j = 1 to sys(9)
- ' Get the Attributes of the current item
- getattr j, type, select, laynum, group, red, green, blue
- ' if the Item is on Layer 2 then . . .
- if laynum = 2 then
- select = 1
- ' Select that Item
- putattr j, type, select, laynum, group, red, green, blue
- endif
- ' Done with that object, loop back to select the next one
- next
- ' finished with every object in drawing, end program
- ' all entities on layer 2 are selected
- ' Set Current Line Thickness and Fill Options
- Sys(6) = .5
- Sys(24) = 1
- ' Apply those Options to the selected Entities
- >ApplyLineWidth
- {
- }
- >ApplyLineFill
- {
- }
- End
-